Skip to content

Conversation

abbajaj806
Copy link
Contributor

Add Video Decode Testcases for VP9
Add Video Encode Testcases for H265

Copy link
Contributor

@smuppand smuppand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’m considering making it more modular, with less maintenance and easier integration for upcoming encode and decode tests. We would just need to prepare the .json file, without requiring a separate run.sh for each format. This should make it easier to manage and more lightweight.

Just add Docoder, Encoder.json, and any input clips. The generic runner will automatically detect and execute them.

@abbajaj806 abbajaj806 force-pushed the Video branch 5 times, most recently from c18a16a to ef23fe7 Compare September 2, 2025 10:13
@abbajaj806 abbajaj806 requested a review from smuppand September 2, 2025 10:17
Copy link
Contributor

@smuppand smuppand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few minor adjustments are needed.


if [ -z "$CFG" ]; then
log_info "No config argument passed, searching for JSON files in the current working directory (from where the script is executed)."
find "$test_path" -type f -name "*.json" 2>/dev/null | sort > "$CFG_LIST"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The config discovery flow is exiting too early. After the CFG_LIST is repopulated, it immediately skips without rechecking, which means files found in the fallback directory could be missed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved in latest commit

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This issue has not been addressed yet.

@abbajaj806 abbajaj806 force-pushed the Video branch 2 times, most recently from d691299 to ae16c77 Compare September 3, 2025 10:05
Copy link
Contributor

@smuppand smuppand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few minor changes are still needed. Aside from that, the modularization appears to be good.

@abbajaj806 abbajaj806 force-pushed the Video branch 2 times, most recently from cf1bfbb to 70e4889 Compare September 5, 2025 13:02
@abbajaj806 abbajaj806 requested a review from smuppand September 5, 2025 13:06
@abbajaj806 abbajaj806 force-pushed the Video branch 3 times, most recently from bc52a2a to 1f8bb69 Compare September 9, 2025 16:50
| `--repeat-policy` | all or any |
| `--junit FILE` | Output JUnit XML to file |
| `--dry-run` | Show commands without executing |

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be helpful to include a few more examples showing how a user can launch using these CLI parameters.

[ "$DMESG_SCAN" -eq 1 ] || return 2
MODS='oom|memory|BUG|hung task|soft lockup|hard lockup|rcu|page allocation failure|I/O error'
EXCL='using dummy regulator|not found|EEXIST|probe deferred'
if scan_dmesg_errors "$LOG_DIR" "$MODS" "$EXCL"; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your scan_dmesg_if_enabled() calls scan_dmesg_errors "$LOG_DIR" "$MODS" "$EXCL", but the functiona take (mods, outdir, excl). With the current order, the scan very likely doesn’t work as intended.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in latest commit

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This issue has not been addressed yet.

###############################################################################
is_decode_cfg() {
case "$(basename "$1" | tr '[:upper:]' '[:lower:]')" in
*dec*.json) return 0 ;; # decode
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mode (decode/encode): Your current is_decode_cfg() defaults to decode if it can’t infer from the filename—so it will still treat this as decode (good). But it doesn’t read the "Domain" key yet.

cfg="$1"
{
extract_scalar_key_values "Inputpath" "$cfg"
extract_scalar_key_values "input" "$cfg"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your helper looks for "Inputpath" (lowercase p), not "InputPath" (uppercase P), so it won’t pick up ./720p_AVC.h264 right now.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The handling is still missing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in latest commit

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This issue has not been addressed yet.

cfg="$1"
{
extract_scalar_key_values "Inputpath" "$cfg"
extract_scalar_key_values "input" "$cfg"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The handling is still missing.

@abbajaj806 abbajaj806 requested a review from smuppand September 10, 2025 18:53
@abbajaj806 abbajaj806 force-pushed the Video branch 2 times, most recently from 1365f40 to eece946 Compare September 12, 2025 12:08
# Generic Video V4L2 runner (encode/decode) for iris_v4l2_test JSON configs.
# Minimal deps: POSIX sh + grep/sed/awk/find/sort
# Uses in-tree run_with_timeout() from functestlib.sh when present.
# SPDX-License-Identifier: BSD-3-Clause-Clear
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still copyright is missing.

[ "$DMESG_SCAN" -eq 1 ] || return 2
MODS='oom|memory|BUG|hung task|soft lockup|hard lockup|rcu|page allocation failure|I/O error'
EXCL='using dummy regulator|not found|EEXIST|probe deferred'
if scan_dmesg_errors "$LOG_DIR" "$MODS" "$EXCL"; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This issue has not been addressed yet.

cfg="$1"
{
extract_scalar_key_values "Inputpath" "$cfg"
extract_scalar_key_values "input" "$cfg"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This issue has not been addressed yet.


if [ -z "$CFG" ]; then
log_info "No config argument passed, searching for JSON files in the current working directory (from where the script is executed)."
find "$test_path" -type f -name "*.json" 2>/dev/null | sort > "$CFG_LIST"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This issue has not been addressed yet.

@abbajaj806 abbajaj806 force-pushed the Video branch 3 times, most recently from 6d2ae26 to 3778df2 Compare September 18, 2025 06:04
@abbajaj806 abbajaj806 force-pushed the Video branch 2 times, most recently from 38e0f99 to fc66087 Compare September 24, 2025 04:44
…rs and encoders

Add Support Video Decode Testcases for H265
Add Support Video Decode Testcases for VP9
Add Support Video Encode Testcases for H265

Signed-off-by: Abhishek Bajaj <[email protected]>
@abbajaj806
Copy link
Contributor Author

We will raise a another request with more modularized Code.

@abbajaj806 abbajaj806 closed this Sep 29, 2025
@abbajaj806 abbajaj806 deleted the Video branch October 16, 2025 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants